package com.lebang.service;

import com.lebang.entity.FastLoginRecord;
import com.lebang.example.FastLoginRecordExample;
import com.lebang.mapper.FastLoginRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @Author: hwq
 * @Date: 2019/11/14 17:38
 * @Version 1.0
 */
@Service
public class FastLoginService extends BaseService<FastLoginRecord,Integer, FastLoginRecordExample>{
    @Autowired
    private FastLoginRecordMapper baseMapper;
    public void insertRecord(String memberId, int i) {
        FastLoginRecord fastLoginRecord=new FastLoginRecord();
        fastLoginRecord.setCreatedTime(new Date());
        fastLoginRecord.setMemberId(memberId);
        fastLoginRecord.setType(i);
        baseMapper.insertSelective(fastLoginRecord);
    }
}
